
/*点击打勾和取消√*/
i_off_on=(i)=>{
	if (i.firstElementChild.style.display == "") {
		i.firstElementChild.style.display = "none";
	}else{
		i.firstElementChild.style.display = "";
	}
	
	console.log(i.firstElementChild);
}

new Vue({
	el:"#app",
	data:{
		phone:"",
		phoneMsg:"",
		orange_border:"",
		
	},mounted(){
		
	},methods:{
		test(){
			if(!(/^1[34578]\d{9}$/.test(this.phone))) {
				this.phoneMsg = "ⓘ手机号格式不正确";
			} else {
				this.phoneMsg = "";
			}
			if(this.phone != ""){
				this.orange_border = "";
			}
		},
		Register(){
			if(!(/^1[34578]\d{9}$/.test(this.phone))) {
				this.phoneMsg = "ⓘ手机号格式不正确";
				this.orange_border = "border:1px solid #ff6700";
			}
			if(this.phone == ""){
				this.phoneMsg = "ⓘ请输入手机号码";
				this.orange_border = "border:1px solid #ff6700";
			}
		}
	}
})
